﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Lavanderia.BL;
using Lavanderia.Entities;
using Microsoft.Practices.Unity;

namespace Lavanderia.UI
{
    public partial class FrmVentaMotivo : Form
    {
        public FrmVentaMotivo()
        {
            InitializeComponent();
            this.BuilUp();
        }

        private void FrmVentaMotivo_Load(object sender, EventArgs e)
        {
            vENTABindingSource.AddNew();
        }

        public VENTA currentVentaMotivo { get; set; }

        private void btnOK_Click(object sender, EventArgs e)
        {
            currentVentaMotivo = vENTABindingSource.Current as VENTA;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            currentVentaMotivo = vENTABindingSource.Current as VENTA;
            this.Close();
        }
    }
}
